<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    // 1- storage分为localStorage,sessionStorage
    // 2- localStorage,sessionStorage都是window下面的对象
    // 浏览器-》软件-》安装--》盘符
    // 1
    localStorage.username = "zhangsan";
	// 2
    localStorage["age"] = 100;
	// 3
    localStorage.setItem("sex","男");
</script>
</html>